package com.carsite.model;

import java.io.Serializable;
import java.util.Date;
/**
 *  产品表
 * @struts.form include-all="false" extends="BaseForm"
 * @hibernate.class table="WT_Product"
 */
public class Product extends BaseObject implements Serializable {
	private Integer id;               //id
	private String belongDept;        //所属部门
	private String belongDeptName;    //所属部门名
	private String sn;               //产品编号
	private String title;            //产品名称
	private String types;            //产品类别
	private String dir;              //
	private String unit;             //单位
	private Double buyPrice;     //采购价格
	private Double salePrice;    //销售价格
	private String pic;              //产品图片
	private String intro;            //简介
	private String remark;           //备注
	private String inputUser;        //录入人
	private Date inputTime;          //录入时间
	private Integer status;          //状态
	private Integer initNum;         //最少数量-报警
	private Integer planNum;         //计划
	private Integer factNum;         //实际数量
	private Double amount;       //金额
	private Date qkDate;             //
	private Date pdDate;             //
	
	/**
	 * @struts.form-field form-name="ProductForm"
	 * @hibernate.id column="Id" generator-class="increment" unsaved-value="null"
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 *  
	 * @hibernate.property column="belongDeptID" not-null="true" length="50"
	 */
	public String getBelongDept() {
		return belongDept;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * @struts.validator type="required"
	 * @hibernate.property column="belongDeptName" not-null="true" length="50"
	 */
	public String getBelongDeptName() {
		return belongDeptName;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getSn() {
		return sn;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getTypes() {
		return types;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getDir() {
		return dir;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getUnit() {
		return unit;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Double getBuyPrice() {
		return buyPrice;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Double getSalePrice() {
		return salePrice;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getPic() {
		return pic;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getIntro() {
		return intro;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public String getInputUser() {
		return inputUser;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Date getInputTime() {
		return inputTime;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Integer getStatus() {
		return status;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Integer getInitNum() {
		return initNum;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Integer getPlanNum() {
		return planNum;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Integer getFactNum() {
		return factNum;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Double getAmount() {
		return amount;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Date getQkDate() {
		return qkDate;
	}
	/**
	 * @struts.form-field form-name="ProductForm"
	 * 
	 * @hibernate.property 　length="50"
	 */
	public Date getPdDate() {
		return pdDate;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	public void setBelongDept(String belongDept) {
		this.belongDept = belongDept;
	}
	public void setSn(String sn) {
		this.sn = sn;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setTypes(String types) {
		this.types = types;
	}
	public void setDir(String dir) {
		this.dir = dir;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public void setBuyPrice(Double buyPrice) {
		this.buyPrice = buyPrice;
	}
	public void setSalePrice(Double salePrice) {
		this.salePrice = salePrice;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public void setInputUser(String inputUser) {
		this.inputUser = inputUser;
	}
	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public void setInitNum(Integer initNum) {
		this.initNum = initNum;
	}
	public void setPlanNum(Integer planNum) {
		this.planNum = planNum;
	}
	public void setFactNum(Integer factNum) {
		this.factNum = factNum;
	}
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	public void setQkDate(Date qkDate) {
		this.qkDate = qkDate;
	}
	public void setPdDate(Date pdDate) {
		this.pdDate = pdDate;
	}
	
	public void setBelongDeptName(String belongDeptName) {
		this.belongDeptName = belongDeptName;
	}
	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
	
	
	
}
